package com.crosbymichael.parser
{
	/**
	 * Class removed the extension of the file name.
	 *  
	 * @author Michael Crosby crosbymichael.com
	 * 
	 */	
	public class RemoveExtension
	{
		public function RemoveExtension()
		{
		}
		
		/**
		 * Removes the last 4 chars of the name.
		 *  
		 * @param name Name of a file with extension
		 * 
		 * @return Name of a file without extension. 
		 * 
		 */		
		public static function remove(name:String):String {
			return name.slice(0, (name.length - 4));
		}
	}
}